@import "style/style.less";

@primary-color: #2F54EB; // 全局主色

html,
body,
#app, #root {
  height: 100%;
}
button{
  border-radius: 5px;
}
.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {

  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}
.serchInput{
  .ant-select-selection {
    border-radius: 7px  0 0 7px;
    min-width: 100px
  }
}
.ant-btn{
  border-radius: 7px;
  padding: 4px 6px;
  line-height: 19px;
  height: 28px;
  span{
    font-weight: 500;
    font-size: 13px;
    line-height: 13px;
  }
}
@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

.ant-modal-content{
  border-radius: 10px;
  font-size: 13px;
}
.model_title{
  padding: 0 20px;
  font-size: 15px;
  border-left:4px solid @primary-color ;
  //margin: 20px 0;
  margin-bottom: 20px;
}
.ant-pro-page-header-wrap-children-content{
  margin: 10px;
}
.ant-pro-basicLayout-content {
  //margin: 10px;
}
//修改顶部导航
.ant-page-header {
  padding: 5px 24px;
}
.ant-breadcrumb {
  font-size: 13px;
}
.ant-page-header.has-breadcrumb {
  padding-top: 5px;
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar{
  width: 10px;
  height: 10px;
  background-color: #fff;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  border-radius: 10px;
  background-color: #fff;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb{
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  background-color: #c8c8c8;
}

.ant-card-body {
  padding: 15px;
  zoom: 1;
}

//table title左侧弹出层
.popover_content{
  padding: 0;
  margin: 0;
  .popover_content_title{
    cursor:pointer;
    margin-bottom: 8px;
    &:hover{
      color: @primary-color;
    }
  }
}


.head_left_menu{
  float: right;
  display: flex;
  align-items: center;
  padding: 10px;
  button{
    border-radius: 5px;
    margin-left: 10px;
  }
}
.table_name{
  cursor:pointer
}